package com.insider.service.impl;


import com.insider.dao.PassKeeperDao;
import com.insider.domain.PassKeeper;
import com.insider.service.PassKeeperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.util.List;

@Service
@Transactional
public class PassKeeperServiceImpl implements PassKeeperService {

   @Autowired
   private PassKeeperDao passKeeperDao;

    @Override
    public void save(PassKeeper passKeeper) throws SQLException {
        passKeeperDao.save(passKeeper);
    }

    @Override
    public PassKeeper find(PassKeeper passKeeper) throws SQLException {
        return passKeeperDao.find(passKeeper);
    }

    @Override
    public void update(PassKeeper passKeeper) throws SQLException {
        passKeeperDao.update(passKeeper);
    }

    @Override
    public void delete(PassKeeper passKeeper) throws SQLException {
        passKeeperDao.delete(passKeeper);
    }

    @Override
    public List<PassKeeper> findAll(PassKeeper passKeeper) throws SQLException {
        return passKeeperDao.findAll(passKeeper);
    }
}
